package com.sl.au.entity;
//游客扣分

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.sl.au.entity.Root;
import com.sl.au.entity.User;

@Entity
@Table(name = "sl_wcsi_visitor_reward_processing")
public class VisitorRewardProcessing extends Root {
	@ManyToOne
	@JoinColumn(name = "user")
	private User user;// 游客

	@ManyToOne
	@JoinColumn(name = "operator")
	private User operator;// 操作人
	
	@Column(nullable = true,name="operationTime")
	private Date operationTime;//操作时间
	
	@Column(nullable = true,name="details")
	private String details;//详情
	
	@ManyToOne
	@JoinColumn(nullable = true,name="goods")
	private Goods goods; //预留外键
	
	@Column(nullable = true,name="redeemCode")
	private String redeemCode; //兑换码
	
	private double rewardValue;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public User getOperator() {
		return operator;
	}

	public void setOperator(User operator) {
		this.operator = operator;
	}

	public Date getOperationTime() {
		return operationTime;
	}

	public void setOperationTime(Date operationTime) {
		this.operationTime = operationTime;
	}

	public String getDetails() {
		return details;
	}

	public void setDetails(String details) {
		this.details = details;
	}

	public Goods getGoods() {
		return goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}

	public double getRewardValue() {
		return rewardValue;
	}

	public void setRewardValue(double rewardValue) {
		this.rewardValue = rewardValue;
	}

	public String getRedeemCode() {
		return redeemCode;
	}

	public void setRedeemCode(String redeemCode) {
		this.redeemCode = redeemCode;
	}

}
